Page({
    data: {
        orderStatus: 1,
        title: "",
        statusList: [ {
            orderStatus: 0,
            title: "已关闭"
        }, {
            orderStatus: 10,
            title: "待付款"
        }, {
            orderStatus: 20,
            title: "机器出货中"
        }, {
            orderStatus: 50,
            title: "交易成功"
        }, {
            orderStatus: 70,
            title: "退款"
        } ]
    },
    onLoad: function(t) {
        this.setData({
            orderStatus: t.orderStatus
        }), this.setTitle();
    },
    toRobotLogin: function() {
        wx.switchTab({
            url: "/pages/index/index"
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    setTitle: function() {
        var t = this, e = this.data.statusList.filter(function(e) {
            return e.orderStatus == t.data.orderStatus;
        });
        this.setData({
            title: e[0].title
        }), wx.setNavigationBarTitle({
            title: e[0].title
        });
    }
});